package com.straw.hat.springboot.context.beanfactorypostprocess;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Component;

/**
 * @author jianshan@byai.com
 * @date 2020/12/14 4:03 PM
 * describe:
 */
@Component
public class StrawHatBeanFactoryPostProcess implements BeanFactoryPostProcessor {

    private static final Logger LOGGER = LoggerFactory.getLogger(StrawHatBeanFactoryPostProcess.class);

    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
        LOGGER.info("Straw Hat BeanFactoryPostProcess postProcessBeanFactory");
    }
}
